package com.css.dzj.zfjg.modules.riskwarning.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "JG_LHJG_RISK_WARNING", schema = "DZJZFJG", catalog = "")
public class JgLhjgRiskWarningEntity {
    private String riskId;
    private String taskNo;
    private String riskObjectCertCode;
    private String fxyjId;
    private String domains;
    private String province;
    private String title;
    private String level;
    private String createAt;
    private String source;
    private String ruleId;
    private String props;
    private String riskObject;

    @Id
    @Column(name = "Risk_Id")
    public String getRiskId() {
        return riskId;
    }

    public void setRiskId(String riskId) {
        this.riskId = riskId;
    }

    @Basic
    @Column(name = "Task_No")
    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    @Basic
    @Column(name = "Risk_Object_Cert_Code")
    public String getRiskObjectCertCode() {
        return riskObjectCertCode;
    }

    public void setRiskObjectCertCode(String riskObjectCertCode) {
        this.riskObjectCertCode = riskObjectCertCode;
    }

    @Basic
    @Column(name = "Fxyj_Id")
    public String getFxyjId() {
        return fxyjId;
    }

    public void setFxyjId(String fxyjId) {
        this.fxyjId = fxyjId;
    }

    @Basic
    @Column(name = "Domains")
    public String getDomains() {
        return domains;
    }

    public void setDomains(String domains) {
        this.domains = domains;
    }

    @Basic
    @Column(name = "Province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "Title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "Level")
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Basic
    @Column(name = "Create_At")
    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    @Basic
    @Column(name = "Source")
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Basic
    @Column(name = "Rule_Id")
    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    @Basic
    @Column(name = "Props")
    public String getProps() {
        return props;
    }

    public void setProps(String props) {
        this.props = props;
    }

    @Basic
    @Column(name = "Risk_Object")
    public String getRiskObject() {
        return riskObject;
    }

    public void setRiskObject(String riskObject) {
        this.riskObject = riskObject;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgRiskWarningEntity that = (JgLhjgRiskWarningEntity) o;
        return Objects.equals(riskId, that.riskId) &&
                Objects.equals(taskNo, that.taskNo) &&
                Objects.equals(riskObjectCertCode, that.riskObjectCertCode) &&
                Objects.equals(fxyjId, that.fxyjId) &&
                Objects.equals(domains, that.domains) &&
                Objects.equals(province, that.province) &&
                Objects.equals(title, that.title) &&
                Objects.equals(level, that.level) &&
                Objects.equals(createAt, that.createAt) &&
                Objects.equals(source, that.source) &&
                Objects.equals(ruleId, that.ruleId) &&
                Objects.equals(props, that.props) &&
                Objects.equals(riskObject, that.riskObject);
    }

    @Override
    public int hashCode() {
        return Objects.hash(riskId, taskNo, riskObjectCertCode, fxyjId, domains, province, title, level, createAt, source, ruleId, props, riskObject);
    }
}
